package com.ruoyi.hotel.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.hotel.domain.HotelHouse;
import com.ruoyi.hotel.domain.vo.HotelStatusNumber;

/**
 * 房间Mapper接口
 *
 * @author ruoyi
 * @date 2024-11-15
 */
public interface HotelHouseMapper extends BaseMapper<HotelHouse>
{
    /**
     * 查询房间
     *
     * @param houseId 房间主键
     * @return 房间
     */
    public HotelHouse selectHotelHouseByHouseId(Long houseId);

    /**
     * 查询房间列表
     *
     * @param hotelHouse 房间
     * @return 房间集合
     */
    public List<HotelHouse> selectHotelHouseList(HotelHouse hotelHouse);


    /**
     * 删除房间
     *
     * @param houseId 房间主键
     * @return 结果
     */
    public int deleteHotelHouseByHouseId(Long houseId);

    /**
     * 批量删除房间
     *
     * @param houseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHotelHouseByHouseIds(Long[] houseIds);

    HotelHouse checkHouseNumUnique(String houseNum);

    List<HotelStatusNumber> getHouseStatusNumber();
}
